from django.conf.urls.defaults import *
import settings as settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^activitystream/', include('activitystream.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
    ## Static Pages ##
    (r'^$', 'activitystream.signure.views.index'),    
    (r'^products/$', 'activitystream.signure.views.products'),
    (r'^company/$', 'activitystream.signure.views.company'),
    (r'^career/$', 'activitystream.signure.views.career'),
    (r'^contact/$', 'activitystream.signure.views.contact'),
    (r'^terms/$', 'activitystream.signure.views.terms'),
    (r'^privacy/$', 'activitystream.signure.views.privacy'),
    (r'^in-news/$', 'activitystream.signure.views.innews'),
    (r'^management-team/$', 'activitystream.signure.views.managementTeam'),
    (r'^press-releases/$', 'activitystream.signure.views.pressReleases'),
    (r'^current-openings/$', 'activitystream.signure.views.currentOpenings'),
    (r'^ayojak-meetups/$', 'activitystream.signure.views.ayojakMeetups'),
    (r'^ayojak-conf/$', 'activitystream.signure.views.ayojakConf'),
    (r'^ayojak-social/$', 'activitystream.signure.views.ayojakSocial'),
    (r'^stream/$', 'activitystream.signure.views.stream'),
    (r'^talentty/$', 'activitystream.signure.views.talentty'),    
    ## Activity Stream pages ##
    (r'^slides/$', 'activitystream.slideshare.views.index'),
    (r'^slides/(?P<tag_name>[^\.^/]+)/tagslides/$', 'activitystream.slideshare.views.slidesBytag'),
    (r'^group/$', 'activitystream.slideshare.views.getSlideShowByGroup'),
    (r'^user/$', 'activitystream.slideshare.views.getSlideShowByUser'),
    (r'^usertags/$', 'activitystream.slideshare.views.getUserTags'),
    ## Slide Static pages
    (r'^slides/dom/$', 'activitystream.slideshare.views.domSlides'),
    (r'^slides/json/$', 'activitystream.slideshare.views.jsonSlides'),
    (r'^slides/open/$', 'activitystream.slideshare.views.openSlides'),
    (r'^slides/shindig/$', 'activitystream.slideshare.views.shindigSlides'),
    (r'^slides/social/$', 'activitystream.slideshare.views.socialSlides'),
     ## End Slide Static pages
     
    (r'^videos/$', 'activitystream.youtube.views.index'),
    (r'^videos/playlists/$', 'activitystream.youtube.views.playlists'),
    (r'^videos/subscriptions/$', 'activitystream.youtube.views.subscriptions'),
    (r'^videos/favorites/$', 'activitystream.youtube.views.favorites'),
    (r'^videos/(?P<playlist_id>[^\.^/]+)/playlistinfo/$', 'activitystream.youtube.views.playlistinfo'),
    (r'^photos/$', 'activitystream.picasa.views.index'),
    (r'^photos/(?P<album_id>[^\.^/]+)/photos/$', 'activitystream.picasa.views.photos'),
    (r'^photos/usertags/$', 'activitystream.picasa.views.usertags'),
    (r'^photos/(?P<tag_name>[^\.^/]+)/tagphotos/$', 'activitystream.picasa.views.tagphotos'),
    ## Book marks
    (r'^bookmarks/$', 'activitystream.bookmarks.views.index'),
    (r'^bookmarks/(?P<tag_name>[^\.^/]+)/bytag/$', 'activitystream.bookmarks.views.bookmarksByTag'),
    (r'^bookmarks/user/$', 'activitystream.bookmarks.views.userBookmarks'),
    ## Book Mark Static pages    
    (r'^bookmarks/startup/$', 'activitystream.bookmarks.views.bookMarkStratup'),
    (r'^bookmarks/event/$', 'activitystream.bookmarks.views.bookMarkEvent'),
    (r'^bookmarks/php/$', 'activitystream.bookmarks.views.bookMarkPhp'),
    (r'^bookmarks/architecture/$', 'activitystream.bookmarks.views.bookMarkArchitecture'),
    (r'^bookmarks/java/$', 'activitystream.bookmarks.views.bookMarkJava'),
    ##
    (r'^tweet/$', 'activitystream.tweet.views.index'),
    (r'^tweet/search/$', 'activitystream.tweet.views.tweetSearch'),
    (r'^tweet/favorites/$', 'activitystream.tweet.views.tweetFavorites'),
    (r'^signure/$', 'activitystream.signure.views.index'),
    (r'^site_media/(?P<path>.*)$', 'django.views.signure.serve', {'document_root': '/staticpages', 'show_indexes': True}),
)

#if settings.DEBUG:
#    urlpatterns += patterns('django.views.static',
#    (r'^staticpages/(?P<path>.*)$', 
#        'serve', {
#        'document_root': '/activitystream/staticpages',
#        'show_indexes': True }),)